<?php


namespace app\common\model\user;


use app\common\model\BaseModel;
use think\model\concern\SoftDelete;

/**
 * @projectName src
 */
class User extends BaseModel
{
    use SoftDelete;

    protected $deleteTime = 'delete_time';

    public function userType()
    {
        return $this->belongsTo(UserType::class, 'user_type', 'id')->bind([
            'user_type_name'=>'type_name'
        ]);
    }
}